;
$(function() {
  // food type
  $('#adminPages > div > ul > li > a[name="foodTypeList"]').click(
    function() {
      var url = "GetFoodTypeList.action";
      var send_data = expand({data : {
                                       fromPage:"adminPages",
                                       mode:"admin"}
                                     },
                              default_transition_option);
      $.mobile.changePage(url, send_data);
  });
  // food
  $('#adminPages > div > ul > li > a[name="foodList"]').click(
    function() {
      var url = "GetMntFoodList.action";
      var send_data = expand({data : {
                                       fromPage:"adminPages",
                                       mode:"admin"}
                                     },
                              default_transition_option);
      $.mobile.changePage(url, send_data);
  });
  // user
  $('#adminPages > div > ul > li > a[name="userList"]').click(
      function() {
        var url = "addUserAction.action";
        var send_data = expand({data : {fromPage:"adminPages"}}, default_transition_option);
        $.mobile.changePage(url, send_data);
  });
  // table
  $('#adminPages > div > ul > li > a[name="tableList"]').click(
      function() {
        var url = "addTableAction.action";
        var send_data = expand({data : {fromPage:"adminPages"}}, default_transition_option);
        $.mobile.changePage(url, send_data);
  });
});